package com.clinic.service.impl;

import com.clinic.dao.PrescriDao;
import com.clinic.entity.Prescri;
import com.clinic.service.PrescriService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Prescri)表服务实现类
 *
 * @author makejava
 * @since 2020-11-12 15:55:20
 */
@Service("prescriService")
public class PrescriServiceImpl implements PrescriService {
    @Resource
    private PrescriDao prescriDao;
    /**
     * 通过主键删除数据
     *
     * @param prid 主键
     * @return 是否成功
     */
    @Override
    public boolean deleteById(Integer prid) {
        return this.prescriDao.deleteById(prid) > 0;
    }
}